/*
 * @Description  :
 * @Autor        : 杜康
 * @Date         : 2023-03-07 16:38:49 +0800
 * @LastEditors  : 杜康
 * @LastEditTime : 2023-08-03 12:33:10 +0800
 */
import "babel-polyfill";
import Vue from "vue";
import ElementUI from "element-ui";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import Bus from "@/utils/bus";
/**
 * @description 引入element-ui包和样式文件,并对样式进行符合项目的重构
 */
import "element-ui/lib/theme-chalk/index.css";
/* eslint-disable */
import "font-awesome/css/font-awesome.min.css";
Vue.use(ElementUI, {
  size: "small",
});


//  reset CSS
import "normalize.css/normalize.css";
import "@/styles/index.less";
/**
 * @description 处理同级组件的事件车,依赖发布订阅模式
 */
Vue.prototype.$bus = Bus;
/**
 * @description 引入mock -- 只有不是生产环境时才可以引入
 */
if (!process.env.NODE_ENV !== "production") {
  require("./mock");
}

Vue.config.productionTip = false;

console.log("==========process.env----->", process.env);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
